package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.UserWorksStatistical;
import com.ecoolex.ying.space.entity.UserWorksStatisticalExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface UserWorksStatisticalMapper {
    long countByExample(UserWorksStatisticalExample example);

    int deleteByExample(UserWorksStatisticalExample example);

    int deleteByPrimaryKey(Integer worksId);

    int insert(UserWorksStatistical record);

    int insertSelective(@Param("record") UserWorksStatistical record, @Param("selective") UserWorksStatistical.Column ... selective);

    UserWorksStatistical selectOneByExample(UserWorksStatisticalExample example);

    List<UserWorksStatistical> selectByExample(UserWorksStatisticalExample example);

    UserWorksStatistical selectByPrimaryKey(Integer worksId);

    UserWorksStatistical selectByPrimaryKeyWithLogicalDelete(@Param("worksId") Integer worksId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") UserWorksStatistical record, @Param("example") UserWorksStatisticalExample example, @Param("selective") UserWorksStatistical.Column ... selective);

    int updateByExample(@Param("record") UserWorksStatistical record, @Param("example") UserWorksStatisticalExample example);

    int updateByPrimaryKeySelective(@Param("record") UserWorksStatistical record, @Param("selective") UserWorksStatistical.Column ... selective);

    int updateByPrimaryKey(UserWorksStatistical record);

    int batchInsert(@Param("list") List<UserWorksStatistical> list);

    int batchInsertSelective(@Param("list") List<UserWorksStatistical> list, @Param("selective") UserWorksStatistical.Column ... selective);

    int logicalDeleteByExample(@Param("example") UserWorksStatisticalExample example);

    int logicalDeleteByPrimaryKey(Integer worksId);
}